import http from ".."

enum Api {
    departmentUrl = '/api/department/backstage/'
}

// 获取部门列表
export async function getDeptApi() {
    return await http.get(Api.departmentUrl)
}
// 添加部门
export async function postDeptApi(parms: any) {
    return await http.post(Api.departmentUrl, parms)
}
// 修改部门
export async function putDeptApi(id: string | number, parms: any) {
    return await http.put(Api.departmentUrl, id, parms)
}
// 删除部门
export async function delDeptApi(id: string | number) {
    return await http.delete(Api.departmentUrl, id)
}